<%--
  Created by IntelliJ IDEA.
  User: jshand
  Date: 2022/12/6
  Time: 9:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<table cellpadding="0" cellspacing="0" border="1" width="100%">
    <tr>
        <td>序号</td>
        <td>文件名</td>
        <td>下载</td>
    </tr>


    <c:forEach items="${fileList}" var="file" varStatus="stats">
    <tr>
        <td>${stats.count}</td>
        <td>${file.name}</td>
        <td>

            <a href="${pageContext.request.contextPath}/download?filename=${file.name}" >下载</a>
            <a href="${pageContext.request.contextPath}/download2?filename=${file.name}" >SpringMVC下载</a>


        </td>
    </tr>
    </c:forEach>
</table>



</body>
</html>
